import service from "..";
// 获取歌单详情页数据
export function getMusicItemList(id) {
    return service({
        method: 'GET',
        url: `/playlist/detail?id=${id}`,
    })
}
// 获取歌单所有歌曲
export function getMusicItemListAllSong(id) {
    return service({
        method: 'GET',
        url: `/playlist/track/all?id=${id}&limit=20&offset=0`,
        // url: `/playlist/track/all?id=3083860906&limit=20&offset=0`,
    })
}

// 获取歌单所有动态信息
// /playlist/detail/dynamic?id=24381616
export function getMusicItemListDynamic(id) {
    return service({
        method: 'GET',
        url: `/playlist/detail/dynamic?id=${id}`,
    })
}


// 获取歌曲歌词

export function getMusicLyric(id) {
    return service({
        method: 'GET',
        url: `/lyric?id=${id}`
    })
}